package com.borrowed.book.system.mapper;

import com.borrowed.book.system.domain.SysDictType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SysDictTypeMapper {
    int insert(SysDictType record);

    int insertSelective(SysDictType record);

    //获取所有字典类型
    public List<SysDictType> getDictTypeByParam(Map map);
    //根据code查询字典类型
    public SysDictType selectDictTypeByCode(String code);
    //删除字典类型
    public void deleteDictTypeByCode(String code);
}